package com.xhtt.modules.inspection.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.xhtt.modules.inspection.entity.InsTaskDate;
import com.xhtt.modules.inspection.entity.InsTaskUser;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author xj
 * @since 2019-01-29
 */
public interface IInsTaskUserService extends IService<InsTaskUser> {

    /**
     * 一天对应多个人
     *
     * @param users
     * @param insTaskDate
     */
    void add(List<Integer> users, InsTaskDate insTaskDate);

    /**
     * 根据日期查询多个用户
     * @param taskId
     * @param dateTime
     * @return
     */
    String getUserByTaskIdAndDate(Integer taskId, LocalDateTime dateTime);

}
